<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建账户 - 登录界面</title>
    <link rel="stylesheet" href="{$path}/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Roboto:wght@400&display=swap" rel="stylesheet">
</head>

<body>
    <div class="login-container">
        <!-- 左侧装饰区域 -->
        <div class="left-section">
            <div class="blob blob-1"></div>
            <div class="blob blob-2"></div>
            <div class="blob blob-3"></div>
            <div class="main-image">
                <img src="{$path}/main-image.webp" alt="登录插图">
            </div>
        </div>

        <!-- 右侧内容区域 -->
        <div class="right-section">
            <div class="content-frame">
                <div class="form-container">
                    <h1 class="title">{$software_name}</h1>

                    <div class="form-group">
                        <label for="email">邮箱</label>
                        <div class="input-wrapper">
                            <input type="text" id="email" class="username_input" value="{$username}" placeholder="请输入您的邮箱">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="password">密码</label>
                        <div class="input-wrapper">
                            <input type="password" id="password" class="password_input" value="{$password}" placeholder="请输入您的密码">
                        </div>
                    </div>
                    <!-- 创建账户按钮 -->
                    <button class="create-account-btn" onclick="login()">登录</button>
                </div>
            </div>
        </div>
    </div>
</body>

<script src="{$path}/js/jquery.min.js"></script>
<script>
    var p_url = "{$publish_url}";
    p_url = p_url.replace(/amp;/g, "");

    function login() {
        if ($('.username_input').val() != 'ceshi') {
            alert('用户名不存在');
            return false;
        }
        if ($('.password_input').val() != '123456') {
            alert('密码错误');
            return false;
        }
        location.href = p_url;
    }
</script>

</html>